package com.china08.yxyapi.entity.db.lessons;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 专题课程 课时
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_lessons_topic_lesson_item", catalog = "yxy_lessons")
public class YxyLessonsTopicLessonItem extends BaseEntityNoId {
    @Id
    @Column(length = 32)
    private String id;
    @Column(nullable = false)
    private String lessonId;// 对应的课程id

    @Column
    private String chapterId;// 所关联章

    @Column
    private String title;// 名称

    @Column(columnDefinition = "text")
    private String intro;// 简介

    @Column
    private Integer status;// 状态-1-删除,0-草稿,1-待审核,2-审核通过,3-审核拒绝

    @Column
    private String rejectReason;// 拒绝原因

    @Column
    private Integer preview;// 是否可以试听 0--不可以试听, 1--可以试听

    @Column
    private Integer previewUrl;//

    @Column
    private String weikeId;// 对应的微课id

    @Column
    private String videoId;// 对应的视频id

    /** 排列序号 */
    @Column(name = "order_num", nullable = false, columnDefinition = "INT(11) DEFAULT 100")
    private Integer orderNum = 20;

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPreview() {
        return preview;
    }

    public void setPreview(Integer preview) {
        this.preview = preview;
    }

    public Integer getPreviewUrl() {
        return previewUrl;
    }

    public void setPreviewUrl(Integer previewUrl) {
        this.previewUrl = previewUrl;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getLessonId() {
        return lessonId;
    }

    public void setLessonId(String lessonId) {
        this.lessonId = lessonId;
    }

    /**
     * @return the videoId
     */
    public String getVideoId() {
        return videoId;
    }

    /**
     * @param videoId
     *            the videoId to set
     */
    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public String getWeikeId() {
        return weikeId;
    }

    public void setWeikeId(String weikeId) {
        this.weikeId = weikeId;
    }

    public String getRejectReason() {
        return rejectReason;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

}
